﻿<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<form action="index.php" method="post" name="adminForm"> 
<div id="editcell"> 
    <table class="adminlist"> 
    <thead> 
        <tr> 
            <th> 
                <?php echo JText::_( 'Mã sinh viên' ); ?> 
            </th> 
            <th> 
                <?php echo JText::_( 'Tên Sinh viên' ); ?> 
            </th> 
			<th> 
                <?php echo JText::_( 'Khóa học' ); ?> 
            </th> 
			<th> 
                <?php echo JText::_( 'Lớp' ); ?> 
            </th> 
			<th> 
                <?php echo JText::_( 'Mã ngành' ); ?> 
            </th> 
			<th> 
                <?php echo JText::_( 'Quê quán' ); ?> 
            </th> 
			<th width="20"> 
				<input type="checkbox" name="toggle" value="" 
				onclick="checkAll(<?php echo count( $this->items ); ?>);" /> 
			</th> 
        </tr>             
    </thead> 
    <?php 
    $k = 0; 
    for ($i=0, $n=count( $this->items ); $i < $n; $i++) 
    { 					
	        $row =& $this->items[$i]; 
			$checked    = JHTML::_( 'grid.id', $i, $row->masv ); 
			$link = JRoute::_( 'index.php?option=com_sinhvien&controller=sinhvien&task=edit&cid[]='. $row->masv ); 
        ?> 
        <tr class="<?php echo "row$k"; ?>" align="center"> 
            <td> 
                <a href="<?php echo $link; ?>"><?php echo $row->masv; ?></a> 
            </td> 
            <td> 
                <?php echo $row->tensv; ?> 
            </td> 
			<td> 
                <?php echo $row->khoahoc; ?> 
            </td> 
			<td> 
                <?php echo $row->lop; ?> 
            </td>
			<td> 
                <?php echo $row->manganh; ?> 
            </td>
			<td> 
                <?php echo $row->quequan; ?> 
            </td>
			<td> 
				<?php echo $checked; ?> 
			</td> 
        </tr> 
        <?php 
        $k = 1 - $k; 
    } 
    ?> 
    </table> 
</div> 
 
<input type="hidden" name="option" value="com_sinhvien" /> 
<input type="hidden" name="task" value="" /> 
<input type="hidden" name="boxchecked" value="0" /> 
<input type="hidden" name="controller" value="sinhvien" /> 
 
</form> 